//
//  ViewController.swift
//  Demo-18 使用多个AVAudioPlayer
//
//  Created by quanhao huang on 2019/12/27.
//  Copyright © 2019 quanhao huang. All rights reserved.
//

import UIKit
import AVFoundation

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //使用方法
        if let url = Bundle.main.url(forResource: "test1", withExtension: "wav") {
            let player = AVAudioPlayerPool().playerWithURL(url: url)
            player?.play()
        }
    }


}

